using System;
using System.Collections.Generic;
using System.Text;

namespace Prologis.Shifter.Test
{


    public class ApplikationDataSource : NestedDataSourceSkeleton
    {


        /// <summary>
        /// 
        /// </summary>
        public ApplikationDataSource()
        {
        }

        public string ValueToAssign = "abc";



        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="fields"></param>
        /// <returns></returns>
        public override bool SetValue(string name, FieldList fields)
        {


            string s = "";

            switch (name)
            {

                case "FromApp1":
                    fields[name].Value = ValueToAssign;
                    return true;

            }

            return true;
        }


        public static string GetValue(FieldList fields, string key, string default_)
        {
            string result = default_;
            if ((fields.ContainsKey(key)) && (fields[key].Value != null))
            {
                result = fields[key].Value.ToString();
            }
            return result;
        }

    }
}
